@import "./variable.scss";
@import "./base.scss";

body {
    background-color: #eae8eb;
}

header {
    .nav {
        width: 100%;
        height: 36px;
        background-color: #f5f5f5;
        border-bottom: 1px solid #eee;
        margin-bottom: 30px;

        .navBox {
            width: 990px;
            margin: 0 auto;
            line-height: 36px;
            font-size: 12px;
            color: #6c6c6c;
            margin-bottom: 20px;
            overflow: hidden;

            .loginBox {
                float: left;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }

            .loginShadow {
                display: none;
                padding: 20px;
                box-sizing: border-box;
                width: 270px;
                height: 150px;
                background-color: #fff;
                box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
                position: fixed;
                top: 35px;
                left: 138px;
                z-index: 100;

                .zhezhao {
                    width: 180px;
                    height: 36px;
                    position: fixed;
                    top: 0;
                    left: 138px;
                    background-color: rgba(0, 0, 0, 0);
                }

                .shadowImag {
                    width: 100%;
                    line-height: 20px;
                    text-align: left;

                    span {
                        float: right;
                        padding: 0px 10px;

                        &:hover {
                            color: $theme;
                            cursor: pointer;
                        }
                    }
                }

                .shadowImg {
                    width: 50px;
                    height: 50px;
                    border-radius: 25px;
                    overflow: hidden;
                }

                .shadowState {
                    text-align: center;
                    line-height: 24px;
                    color: #ff934c;
                    border: 1px solid #ff934c;
                    background-color: rgb(254, 246, 229);
                }
            }

            .navMenu {
                float: right;

                li {
                    float: left;
                    padding: 0px 10px;

                    &:hover {
                        color: $theme;
                    }

                    &.active {
                        color: $theme;
                    }
                }
            }
        }
    }
}

.page {
    @extend type_area;
    display: flex;

    .header {
        width: 100px;
        height: 50px;
        margin-right: 20px;

        img {
            width: 100%;
            height: 100%;
        }
    }

    h2 {
        width: 100px;
        height: 50px;
        @extend flex;
    }
}

section {
    width: 600px;
    min-height: 450px;
    padding: 20px;
    border-radius: 15px;
    margin: 150px auto 0;
    background-color: #fff;

    form {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        padding-top: 30px;
        position: relative;

        .error {
            position: absolute;
            left: 20%;
            top: -10px;
            font-size: 20px;
            color: $theme;
            display: none;
            &.active {
                display: block;
            }
        }

        label {
            height: 60px;
            font-size: 20px;

            input {
                font-size: 20px;
                padding-left: 20px;
                height: 30px;
                border: 1px solid #d6d6d6;
            }
        }

        .sub {
            display: flex;
            height: 30px;
            align-items: center;
            font-size: 18px;
            line-height: 30px;
        }

        .register {
            font-size: 20px;
            padding: 10px 0;
            background-color: #ff5000;
            color: #fff;
            margin: 10px 0;
            opacity: 0.5;
        }

        p {
            color: #ff5000;
            font-size: 18px;

            span {
                color: lightgrey;
            }
        }

        .toggle {
            position: absolute;
            right: 0px;
            bottom: -100px;
        }
    }
}